package com.du.cloud.service.admin.api.model.entity;

import com.du.cloud.common.base.model.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Desc:
 * Author: dushuang
 * Date: 2020/5/25
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "sys_user")
public class SysUser extends BaseEntity implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String loginName;
    private String realName;
    // 密码
    private String password;
    // 性别
    private Integer sex;
    private String phone;
    private String email;
    private Integer loginFlag;
}
